package com.uplooking.pms.system.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author yzb
 * @since 2018-06-13
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * 角色ID
     */
	private String rid;
    /**
     * 组织机构id
     */
	private String ogid;
    /**
     * 姓名
     */
	private String name;
    /**
     * 密码
     */
	private String pwd;
    /**
     * 性别 1-男、2-女
     */
	private BigDecimal sex;
    /**
     * 生日
     */
	private String birth;
    /**
     * 手机
     */
	private String phone;
    /**
     * 邮件
     */
	private String email;
    /**
     * 头像
     */
	private String avatar;
    /**
     * 登录时间
     */
	private String logintime;
    /**
     * 登录ip
     */
	private String loginip;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRid() {
		return rid;
	}

	public void setRid(String rid) {
		this.rid = rid;
	}

	public String getOgid() {
		return ogid;
	}

	public void setOgid(String ogid) {
		this.ogid = ogid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public BigDecimal getSex() {
		return sex;
	}

	public void setSex(BigDecimal sex) {
		this.sex = sex;
	}

	public String getBirth() {
		return birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getLogintime() {
		return logintime;
	}

	public void setLogintime(String logintime) {
		this.logintime = logintime;
	}

	public String getLoginip() {
		return loginip;
	}

	public void setLoginip(String loginip) {
		this.loginip = loginip;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "User{" +
			"id=" + id +
			", rid=" + rid +
			", ogid=" + ogid +
			", name=" + name +
			", pwd=" + pwd +
			", sex=" + sex +
			", birth=" + birth +
			", phone=" + phone +
			", email=" + email +
			", avatar=" + avatar +
			", logintime=" + logintime +
			", loginip=" + loginip +
			"}";
	}
}
